#!/usr/bin/env bash
kubectl delete -f spark-port-proxy.yaml
docker build . -t spark-port-proxy
kubectl apply -f spark-port-proxy.yaml
kubectl get pod
name=` kubectl get pod | grep spark-port-proxy | head -n 1 | awk '{print $1}'`
sleep 3
kubectl logs -f ${name}